const userService = require('../services/userService.js')

class userController {
    async register(ctx) {
        const body = await userService.register(ctx)
        console.log(ctx.body);
        ctx.body = body
    }
    async login(ctx) {
        const body = await userService.login(ctx)
        ctx.body = body
    }
    async uploadImg(ctx) {
        const body = await userService.uploadImg(ctx)
        ctx.body = body
    }
    async updateMsg(ctx) {
        const body = await userService.updateMsg(ctx)
        ctx.body = body
    }
}

module.exports = new userController();